package MethodApplication.MethodDemo1;



public class demo1 {
    public static void hi(MethodUpperCases a){
        a.print("hello");
    }

    public static void main(String[] args) {
       /* hi((String s)->{
            student student = new student();
            student.methodUpperCases(s);
        });*/
        student student = new student();
        //通过对象名的方法引用
        hi(student::methodUpperCases);
    }
}
